package com.zxcl.feign;

import com.zxcl.domain.Member;
import com.zxcl.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * 描述: [会员RPC]
 * 作者: zxcl
 */
@FeignClient(value = "member-service")
public interface ProdMemberFeign {

    /**
     * 根据openIds获取会员的信息集合
     * @param openIds
     * @return
     */
    @GetMapping("p/user/getMembersByOpenIds")
    Result<List<Member>> getMembersByOpenIds(@RequestParam("openIds") Set<String> openIds);

}
